Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Fatboy attack angle and give it a longer projectile lifetime #5979

Merged
merged 2 commits into from
Mar 15, 2024

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Mar 15, 2024

An AttackAngle of 10 allows 3 weapons to fire only if the target is stationary. An in-game example of weapons not firing because of this would be a galactic colossus moving perpendicular to and towards the Fatboy at long range, which causes the back weapon to not fire. 20 angle is in the middle of the angle limits, so it should more often allow 3 cannons to fire, depending on unit speed/distance. It does solve the example with the GC.

fatboy.cant.shoot.mp4
Angle limits math image Bone yaw + turret yaw + turret yaw range = actual yaw range. Then intersect all the ranges. The `HeadingArcRange` values are greater than the yaw ranges, so they have no effect and I didn't include them in this image.

image

I noticed that while shooting a GC or groundfiring up a tall plateau the projectiles that miss above the target would time out and be unable to hit the ground, so I increased the projectile lifetime significantly.

Setting SlaveToBody = true for the weapons makes it automatically turn towards the target at AttackAngle, just like battleships, but it makes it annoying to micro with how often it would turn + how fragile it is, so I decided against making that change. For now you have to right click the enemy to get the optimal angle.
Ideally we could have a rear version of AttackAngle that it could choose as a second option, then it would always try for max single target DPS while not constantly turning 160 degrees (5.3x2 seconds) towards the enemy after you order it to retreat. Alternatively we could compute how it needs to turn to hit its target similar to Nomads' Akimbo feature?

@Garanas
Copy link
Member

Garanas commented Mar 15, 2024

Alternatively we could compute how it needs to turn to hit its target similar to Nomads' Akimbo feature?

I'd not be in favor of exploring such a direction. The unit doesn't need to be perfect, in the end it just needs to be good enough and it feels to me that you've just made it better than it was before 😃

@Garanas Garanas added the area: balance related to units balance label Mar 15, 2024
@Garanas Garanas merged commit b284a77 into FAForever:deploy/fafdevelop Mar 15, 2024
@lL1l1 lL1l1 deleted the Fix/fatboy-angle branch April 1, 2024 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: balance related to units balance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants